package io.gitee.zhangbinhub.acp.cloud.resource.server.conf

import io.gitee.zhangbinhub.acp.cloud.resource.server.constant.AcpCloudResourceServerConstant
import org.springframework.boot.context.properties.ConfigurationProperties

/**
 * 鉴权相关配置
 *
 * @author zhang by 14/01/2019 17:30
 * @since JDK 11
 */
@ConfigurationProperties(prefix = AcpCloudResourceServerConstant.propertiesPrefix)
class AcpCloudResourceServerConfiguration {
    /**
     * 资源服务认证使用的clientId
     */
    var clientId = AcpCloudResourceServerConstant.clientId

    /**
     * 资源服务认证使用的clientSecret
     */
    var clientSecret = AcpCloudResourceServerConstant.clientSecret

    /**
     * 不进行权限校验的 url path
     */
    var permitAllPath: MutableList<String> = mutableListOf()

    /**
     * 进行权限保护的 url path
     */
    var securityPath: MutableList<String> = mutableListOf()

}
